package com.haha.qqchannelbot.core.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

@Getter
@Setter
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MarkdownMsg {

    /**
     * 自定义 markdown 消息： 【内邀使用】
     */
    private String content;

    @JsonProperty("custom_template_id")
    private String customTemplateId;

    /**
     *
     */
    private List<Param> params;

    @Getter
    @Setter
    @ToString
    @JsonIgnoreProperties(ignoreUnknown = true)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class Param {
        private String key;
        private List<String> values;
    }

}


